{% extends "base.html" %}

{% block content %}
{{test}}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">
<table width='80%' class='grid' cellspacing='1' align='center'><tr><td colspan='10' class='title' align="center">User Roles list</td></tr>
<tr valign='middle' align='left'></tr>
  <tr valign='middle' align='left'>
  <td class='odd gray' width='10%'>ID</td>
  <td class='even gray' width='15%'>Level</td>
  <td class='even gray' width='15%'>Role</td>
  <td class='even gray' width='15%'>Update Date</td>
  <td class='even gray' width='15%'>Update User</td>
  <td class='even gray' width='30%'>
	Action&nbsp;&nbsp;&nbsp;(<a style="color:blue;" href="/add_role">Add Aew Role</a>)
  </td>  

  </tr>
  {% for rolelist in rolelist %}
 
  <tr valign='middle' align='left'>
  <td class='odd'>{{rolelist.id}}</td>
   <td class='even'>{{rolelist.name}}</td>
   <td class='even'><a href='/edit_role/{{ rolelist.id}}'>Watch Info</a></td>
   <td class='even'>{{rolelist.upd_date}}</td>
   <td class='even'>{{rolelist.upd_user}}</td>
	<td class='even blue' >
		<a href="/edit_role/{{ rolelist.id}}">Edit</a>&nbsp;&nbsp;&nbsp;
		<a href="/del_role/{{ rolelist.id}}" onclick="return confirm('Are you sure to delete it?');">Delete</a>&nbsp;&nbsp;&nbsp;
	</td>
  </tr>

  {% endfor %}

      <tr><td  class='even' colspan="10" align="right"><strong>{{ hits }}</strong>&nbsp;Records&nbsp;&nbsp;

</td></tr>
</table>
{% endblock %}
